package com.ulic.customerManApplication.tree;

import java.util.List;

public class TreeBuilder {
	public static Tree build(TreeNode rootNode, List<TreeNode> nodes){
		Tree tree = new Tree(rootNode);
		for(int i = 0; i < nodes.size(); i++){
			TreeNode tn = nodes.get(i);
			tree.addNode(tn);
		}
		return tree;
	}
}
